const db = require('./config/db');
const glob = require('glob'); // 匹配文件规则
const { resolve } = require('path'); // 把文件相对路径转为绝对路径

exports.initDB = () => {
    glob.sync(resolve(__dirname, './modal', '**/*.js')).forEach(require);
}